package com.map.repository;

import com.map.entity.MapTucengDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * 供应商Repository接口
 * @author ray
 *
 */
public interface MapTuCengDetailsRepository extends JpaRepository<MapTucengDetails, Integer>,JpaSpecificationExecutor<MapTucengDetails>{

	@Query(value = "select *  from jiyue_map_tucengdetails where  name like ?1 ",nativeQuery=true )
	public List<MapTucengDetails> findByName(String name);

}
